package cn.biplam.front.component.view.systemManage.task.modelimport;

import cn.biplam.common.struc.MdStruc;
import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.Result;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.callback.CallBack;
import cn.biplam.front.component.data.common.ButtonComp;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.template.base.Button.Button_Type;

/**
 * Select字段信息页面—Select已选的字段信息表——操作按钮绑定器
 * @author XiaoRuxing 2009-6-22下午03:59:24
 * @version 1.0
 */
public class ModelImportTaskManageperatorCallBack implements CallBack{

	public HtmlWindow[] getGroup(Result data, String homeUrl, UserInfo mUser)
	throws ErrorMessage {
		/** 创建按钮 */
		HtmlWindow[] opetator=new HtmlWindow[2];
		/** 任务状态 */
		String status = data.getString(MdStruc.MdImpTaskStruc.STATUS);
		/** 删除*/
		opetator[0] = ButtonComp.get(mUser, "2");
		/** 增量比较*/
		if(!"1".equals(status)){
			opetator[1]=ButtonComp.get(mUser, "289",Button_Type.ReadOnly);
		}else{
		}
		opetator[1]=ButtonComp.get(mUser, "289");
		return opetator;
	}

}
